#ifndef _Sprite_h_
#define _Sprite_h_
#include<d3d9.h>
#include<d3dx9.h>
class CSprite
{
	public:
	
	int Cursprite;
	int sx;
	int sy;
	bool isstatic;
	int Width;
	int Height;
	int Lastsprite;
	int Spriteperrow;
	bool ismario;
	bool isinvisible;
	bool is_star_man;
	int mario_frame_rate;
	//LPDIRECT3DTEXTURE9 image;
	DWORD last_time;
	CSprite( bool _isstatic,int sx,int sy,int width, int height,int cursprite, int lastsprite,int spriteperrow);
	void Next();
	void Reset();
	RECT getRECT(int x,int y);
	//void LoadResources(LPDIRECT3DDEVICE9 d3ddv);
	void Render(LPD3DXSPRITE sprite,LPDIRECT3DTEXTURE9 image, int x,int y);
	~CSprite();
};
#endif